<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $uid 
 * @property int $main_uid 
 * @property int $code_id 群活码ID
 * @property int $user_id 客户ID
 * @property int $room_id 群ID
 * @property string $room_wxid 群微信ID
 * @property int $is_enter_room 是否进群（0 = 否，1 = 是）
 * @property int $is_out_room 是否退群（0 = 否，1 = 是）
 * @property string $created_at 
 * @property int $relation_id 
 */
class ChRoomCodeRecord extends MineModel
{
    public bool $timestamps = false;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_room_code_record';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'main_uid', 'code_id', 'user_id', 'room_id', 'room_wxid', 'is_enter_room', 'is_out_room', 'created_at', 'relation_id'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'main_uid' => 'integer', 'code_id' => 'integer', 'user_id' => 'integer', 'room_id' => 'integer', 'is_enter_room' => 'integer', 'is_out_room' => 'integer', 'relation_id' => 'integer'];
}
